<%@page pageEncoding="utf-8" import="java.util.*,com.pmc.dwa.common.utils.ConfigParameter" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="security"%>
<security:authentication var="authentication" property="principal"/>
<%
String cp = request.getContextPath();
String sysMainName = ConfigParameter.getParamVal("sysconf.properties","sysMainName");
String sysSubName = ConfigParameter.getParamVal("sysconf.properties","sysSubName");
String sysVersion = ConfigParameter.getParamVal("sysconf.properties","sysVersion");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><%=sysMainName%>-<%=sysSubName%> <%=sysVersion%></title>
<style>
.a_back:link {
	font-size:12px;
	color: #FF7E32;
	text-decoration: none;
	font-family: Arial, Helvetica, sans-serif;
}
.a_back:visited {
	font-size:12px;
	color: #FF7E32;
	text-decoration: none;
	font-family: Arial, Helvetica, sans-serif;
}
.a_back:hover {
	font-size:12px;
	color: #E10900;
	font-family: Arial, Helvetica, sans-serif;
	text-decoration: none;
}
</style>
<script language="javascript">
function form2center(){
	var width = 817;
	var height = 458;
	var top = (document.body.clientHeight-height)/2;
	var left = (document.body.clientWidth-width)/2;
	var odiv = document.getElementById("loginpage");
	odiv.style.top = top;
	odiv.style.left = left;
	odiv.style.width = width;
	odiv.style.height = height;
}
window.onload =  function(){
	form2center();
}
window.onresize = function(){
	form2center();
}
</script>
</head>
<body>
  <div id="loginpage" style="position:absolute;">
	<table width="817" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tr>
		<td width="284">&nbsp;</td>
		<td width="294"><img src="<%=cp%>/common/images/err/001.png" width="294" height="39" /></td>
		<td width="239">&nbsp;</td>
	  </tr>
	</table>
	<table width="817" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tr>
		<td width="284">&nbsp;</td>
		<td width="57"><img src="<%=cp%>/common/images/err/002.png" width="57" height="112" /></td>
		<td width="185" height="112">
		  <div style="font-weight:bold;font-size:14px;margin-bottom:5px;">您浏览的网页暂时不能显示</div>
		  <span style="font-size:12px;line-height:150%;">错误原因：${authentication!=null?authentication.username:""}，您没有访问该页面的权限！如有需要，请与系统管理员联系，谢谢。</span><br>
		  <a href="<%=request.getContextPath()%>" class="a_back" target="_top" title="点击返回登录页">返回请点这里&gt;&gt;</a>
		</td>
		<td width="52"><img src="<%=cp%>/common/images/err/004.png" width="52" height="112" /></td>
		<td width="239">&nbsp;</td>
	  </tr>
	</table>
	<table width="817" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tr>
		<td>&nbsp;</td>
		<td width="188"><img src="<%=cp%>/common/images/err/left005.png" width="188" height="226" /></td>
		<td width="294" align="char"><table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td height="120"><img src="<%=cp%>/common/images/err/right001.png" width="294" height="120" /></td>
		  </tr>
		  <tr>
			<td height="106">&nbsp;</td>
		  </tr>
		</table></td>
		<td width="239">&nbsp;</td>
	  </tr>
	</table>
	<table width="817" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tr>
		<td><table width="100%" height="81" border="0" cellspacing="0" cellpadding="0" background="<%=cp%>/common/images/err/007.png">
		  <tr>
			<td width="221">&nbsp;</td>
			<td width="80"><img src="<%=cp%>/common/images/err/0081.png" width="80" height="81" /></td>
			<td align="left"><span style="font-size:12px;font-family:Arial;">Copyright &copy; 2013,SystemFramework·北京天下图数据技术有限公司·水利应用部</span></td>
		  </tr>
		</table></td>
	  </tr>
	</table>
  </div>
</body>
</html>